import { SkillInfoPanel } from "../../skill/SkillInfoPanel";
import { ResouceConst } from "../../../../component/gconst/ResouceConst";
import { ImagesConst } from "../../../resource/ImagesConst";
import { ObjCreate } from "../../common/ObjCreate";
import { Language } from "../../../../../extend/language/Language";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GTextFormat } from "../../../../common/GTextFormat";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { ScaleBitmap } from "../../../../../com/mui/display/ScaleBitmap";
//class RuneQuickInfoPanel
    
    export  class RuneQuickInfoPanel extends SkillInfoPanel
    {
        constructor()
        {
            super();
            this._titleBg = ResouceConst.getScaleBitmap(ImagesConst.TileBg);
            this._titleBg.width = 155;
            addChild(this._titleBg);
            this._titleTxt = ObjCreate.createTextField(Language.getString(27519), 10, 5, 220, 20, this);
            this._titleTxt.textColor = GlobalStyle.color2Uint;
            var loc1=new GTextFormat("", 12, GlobalStyle.color1Uint);
            loc1.align = flash.text.TextFormatAlign.LEFT;
            loc1.leading = 4;
            loc1.letterSpacing = 2;
            this._bodyTxt = ObjCreate.createTextField("", this._titleTxt.x, 32, 200, 300, this, loc1);
            this._bodyTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._bodyTxt.wordWrap = true;
            this._bodyTxt.multiline = true;
            this._bodyTxt.htmlText = HTMLUtil.addColor(Language.getString(27520), GlobalStyle.color1);
            return;
        }

        /* internal */ /* var */_titleBg: ScaleBitmap;

        /* internal */ /* var */_titleTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_bodyTxt: Object /* flash.text.TextField */;
    }
